const uni = require('@uni-helper/eslint-config')
const unocss = require('@unocss/eslint-plugin')

module.exports = uni(
  {
    overrides: {
      uni: {
        'vue/component-name-in-template-casing': ['error', 'PascalCase'],
        'vue/block-order': ['error', {
          order: ['template', 'script', 'style'],
        }],
        'no-console': 'off',
        'vue/singleline-html-element-content-newline': 'off',
        'no-mixed-spaces-and-tabs': 0,
        'style/no-mixed-spaces-and-tabs': 0,
        'style/no-tabs': 0,

        'style/space-before-blocks': 'off',
        'brace-style': ['error', '1tbs', { allowSingleLine: true }],
        'style/brace-style': 'off',
        'curly': 'off',
        // 'vue/attribute-hyphenation': 'off',
      },
    },
  },
  unocss.configs.flat,
)
